//
//  MyOSSClient.m
//  XTXOneToOne
//
//  Created by Canny on 2018/11/7.
//  Copyright © 2018年 WK. All rights reserved.
//


#import "MyOSSClient.h"

//NSString *const AccessKey = @"LTAIDoxQxcttpfty";
//NSString *const SecretKey = @"Ox92iowAUYZFPz1CsBg3FMucl6Hgbr";

@implementation MyOSSClient

//+ (instancetype)sharedInstanceWithHost:(NSString *)endPoint{
//    static MyOSSClient *instance;
//    static dispatch_once_t onceToken;
//    dispatch_once(&onceToken, ^{
//        instance = [self _initClient:endPoint];
//    });
//    return instance;
//}

//+ (MyOSSClient *)_initClient:(NSString *)endPoint{
//    // 打开调试log
//    [OSSLog enableLog];
//
//    // oss-cn-shenzhen    oss-cn-shenzhen.aliyuncs.com    oss-cn-shenzhen-internal.aliyuncs.com
//
//    id<OSSCredentialProvider> credential = [[OSSPlainTextAKSKPairCredentialProvider alloc] initWithPlainTextAccessKey:AccessKey secretKey:SecretKey];
//
//    OSSClientConfiguration * conf = [OSSClientConfiguration new];
//    conf.maxRetryCount = 3; // 网络请求遇到异常失败后的重试次数
//    conf.timeoutIntervalForRequest = 30; // 网络请求的超时时间
//    conf.timeoutIntervalForResource = 24 * 60 * 60; // 允许资源传输的最长时间
//
//    MyOSSClient *client = [[MyOSSClient alloc] initWithEndpoint:endPoint credentialProvider:credential clientConfiguration:conf];
//    return client;
//}


@end
